package io.qar.categories.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import java.util.Date;

/**
 * 分类信息表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-02
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class CategoriesExcel {
    @ExcelProperty(value = "分类ID", index = 0)
    private Long categoryId;
    @ExcelProperty(value = "父分类ID", index = 1)
    private Long parentId;
    @ExcelProperty(value = "餐厅ID", index = 2)
    private Long restaurantId;
    @ExcelProperty(value = "分类名称", index = 3)
    private String name;
    @ExcelProperty(value = "分类描述", index = 4)
    private String description;
    @ExcelProperty(value = "是否启用：1-启用，0-禁用", index = 5)
    private Integer isActive;
    @ExcelProperty(value = "分类图片URL", index = 6)
    private String imageUrl;
    @ExcelProperty(value = "排序字段，默认值为0", index = 7)
    private Integer sortOrder;
    @ExcelProperty(value = "创建时间", index = 8)
    private Date createdAt;
    @ExcelProperty(value = "更新时间", index = 9)
    private Date updatedAt;
    @ExcelProperty(value = "创建人", index = 10)
    private Long creator;
    @ExcelProperty(value = "更新 人", index = 11)
    private Long updater;
}